package com.aspose.cells;

class zaxw extends zaxv {
   private int d;
   private int e;

   public zaxw(zahn var1, int var2) {
      super(var1, var2);
   }

   public zahn b(zaay var1) {
      return new zaxw(this.k.b(var1), this.a);
   }

   public boolean b(int var1, int var2) {
      this.i = var1;
      this.j = var2;
      if (var1 >= this.b) {
         return false;
      } else {
         if (this.k.b(var1, var2)) {
            this.g = true;
            this.d = this.k.i();
            this.e = this.k.j();
            this.h = this.d == this.i && this.e == this.j;
         } else {
            this.g = false;
            this.h = false;
         }

         return true;
      }
   }

   public boolean g() {
      ++this.j;
      if (this.j >= this.c) {
         ++this.i;
         if (this.i >= this.b) {
            return false;
         }

         this.j = 0;
      }

      if (this.h) {
         if (this.k.g()) {
            this.d = this.k.i();
            this.e = this.k.j();
            if (this.e != this.j || this.d != this.i) {
               this.h = false;
            }
         } else {
            this.g = false;
            this.h = false;
         }
      } else if (this.g && this.e == this.j && this.d == this.i) {
         this.h = true;
      }

      return true;
   }

   public zagu h() {
      return this.h ? this.k.h() : this.k.o();
   }

   public zagu o() {
      return zzb.a;
   }

   public zagu p() {
      return zzb.a;
   }

   public boolean q() {
      return true;
   }

   public int r() {
      return 0;
   }

   public int s() {
      return this.b - 1;
   }

   public int t() {
      return 0;
   }

   public int u() {
      return this.c - 1;
   }

   public int v() {
      return 0;
   }

   public int w() {
      return this.b * this.c - 1;
   }
}
